package demo.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@RefreshScope  //curl -X POST "http://localhost/actuator/refresh"
public class Config {

    @Value("${role.env}")
    private String role_env;

    @Value("${user.env}")
    private String user_env;

    public String getRole_env() {
        return role_env;
    }

    public void setRole_env(String role_env) {
        this.role_env = role_env;
    }

    public String getUser_env() {
        return user_env;
    }

    public void setUser_env(String user_env) {
        this.user_env = user_env;
    }
}
